<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Storage;
use Watson\Rememberable\Rememberable;

class Medical extends Model
{
    use Rememberable;
    use SoftDeletes;

    protected $rememberCacheTag = 'medical_cache';

    protected $cache_expire_in_minutes = 1440;

    use HasDateTimeFormatter;
    protected $table = 'medical';
    public $timestamps = true;
    // protected $dateFormat = 'U';
    // const CREATED_AT = 'create_time';
    // const UPDATED_AT = 'update_time';

    public function memberDoctor()
    {
        return $this->hasOne(MemberDoctor::class, 'user_id', 'user_id');
    }

    // public function doctor(){}
}
